package com.tarena.charging.user.service;

import cn.tedu.charging.common.pojo.vo.UserInfoVO;
import com.tarena.charging.user.repository.UserVehicleRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserVehicleService {
    @Autowired
    private UserVehicleRepository userVehicleRepository;

    public UserInfoVO getUserCarInfo(Integer id) {
        log.info("根据用户id查询车辆信息");
        Integer carId=userVehicleRepository.getCarIdByUserId(id);
        UserInfoVO vo=new UserInfoVO();
        vo.setCarId(carId);
        return vo;
    }
}
